    {% extends '/pg/index_pg.html' %}
{% block operation %}

<div id="box">
                <span class="testa"><h1>{{pageData["_dao_"].ragione_sociale}}</h1></span>
    <div id="alto" style="height:auto">

    {% set fkey = "/pg/filterkey/"+pageData["fkey"]+".html" %}
    {% include fkey with context %}

    {#% include '/pg/preview.html' with context %#}

    {% include '/pg/daoaddedit.html' with context %}


    </div>

                <div id="filterbox">

                    {% set treeview = "/pg/tree/"+pageData["tree"]+".html" %}
                    {% include treeview with context %}
                    {#% include 'pagination.html' with context %#}
                </div>
        </div>
        </div>

<script type="text/javascript">
function clear_form_elements(ele) {
    $(ele).find(':input').each(function() {

        switch(this.type) {
            case 'password':
            case 'select-multiple':
            case 'select-one':
            case 'text':
            case 'textarea':
                $(this).val('');
                break;
            case 'checkbox':
            case 'radio':
                this.checked = false;
        }
    });
}
</script>
{%endblock%}
